#define _CRT_SECURE_NO_WARNINGS 1

#include"SepList.h"

void test()
{
	SL sl;
	SLInit(&sl);
	SLPushback(1, &sl);
	SLPushback(2, &sl);
	SLPushback(3, &sl);
	SLPushback(1, &sl);
	SLPushback(1, &sl);

	SLPushback(4, &sl);
	SLPushback(1, &sl);

	SLPushback(5, &sl);
	//SLPopback(&sl);
	//SLPushfront(7,&sl);
	//SLPushfront(8, &sl);

	//SLPopfront(&sl);
	//SLPushpos(5, 5, &sl);
	//SLPoppos(2, &sl);

	int pos = SLFind(&sl, 1, 0);
	while (pos != -1)
	{
		SLPoppos(pos, &sl);
		pos = SLFind(&sl, 1, pos);
	}
	SLPrintf(&sl);
	SLDestroy(&sl);



}


int main()
{
	test();
	return 0;
}